#ifndef SNAKE_H_
#define SNAKE_H_

#define HEIGHT 23
#define WIDTH 80

class Snake {
	public:
		enum Direction { U, R, D, L };

		Snake();
		virtual ~Snake();

		void setDirection( Direction d );
		Direction* getTail() const;
		int getLength() const;

		int getX() const;
		int getY() const;

		/*
		 * Jeden krok weza w moveDirection
		 */
		void move();

		/*
		 * Wydluza weza
		 */
		void add();
	private:
		int length;
		Direction* tail;
		Direction moveDirection;

		int x, y;
};

#endif /* SNAKE_H_ */
